Page({

  /**
   * 页面的初始数据
   */
  data: {
    item: null,
    list:null,
    wireCode:null
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(options)
    var list = JSON.parse(options.notInWareHouseList)
    var that=this
    list.forEach(function (item, index) {
      console.log(item);
      that.setData({
        item: item,
        list:list
      })
    })
    that.setData({
      list: list
    })
    console.log(list)
  },
  onUnload() {
    wx.switchTab({
      url: '../my/my',
    })
  },

  goUse:function(e){
    wx.navigateTo({
      url: '../showUsageStatus/showUsageStatus?wireCode='+e.currentTarget.id,
    })
  }
})